package com.woniu.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 住院表
 * @TableName inpatient_record
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class InpatientRecord implements Serializable {
    /**
     * 住院表id
     */
    private Integer id;

    /**
     * 病人id
     */
    private Integer hzCaseId;

    /**
     * 主治医生id
     */
    private Integer hzWorkerId;

    /**
     * 病床id
     */
    private Integer hzBedId;

    /**
     * 入住时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hzStartdate;

    /**
     * 出院时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hzEnddate;

    /**
     * 0=住院中, 1=已申请出院, 2=已出院
     */
    private Integer hzStatus;

    private BigDecimal hzBalance;

    /**
     * 备用字段1
     */
    private String var1;

    /**
     * 备用字段2
     */
    private String var2;

    /**
     * 备用字段3
     */
    private String var3;

    /**
     * 备用字段4
     */
    private String var4;

    private static final long serialVersionUID = 1L;
}